#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "ljserver.h"
#include "predialog.h"

#include <QMainWindow>
#include <QMessageBox>

namespace Ui
{
    class MainWindow;
    class LJServer;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void Clear();

    LJServer server;
    int eventCount;
    PreDialog preWindow;

    
protected:
    void changeEvent(QEvent *e);

private:
    Ui::MainWindow *ui;

public slots:
    void LoginEventHandler();
    void PostEventHandler();
    void ClearEventHandler();
    void RefreshEventHandler();
    void ShowEventHandler();
    void AboutEventHandler();
    void ExitEventHandler();
    void CountBoxEnable();
    void ShowPreDialog();
    void ShowProxyDialog();
    void ShowLoginMessage();
    void ShowPostMessage();
    void SetProgress(qint64,qint64);

};

#endif // MAINWINDOW_H
